package com.template.mongo.persistence.entity;

import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import com.template.mongo.model.BaseBean;


/**
 * The persistent class for the account database table.
 * 
 */
@Document(collection = "video")
public class Video extends BaseBean {
	private static final long serialVersionUID = 1L;

    @Indexed(unique = true)
    private String idv;

	private String title;
	
	private String titleUnsigned;
	
	private String source;

	@Override
	public String getKeyName() {
		return "idv";
	}

	@Override
	public Object getKeyValue() {
		return this.idv;
	}

	@Override
	public void setKeyValue(Object key) {
		this.idv = (String) key;
	}

	public String getIdv() {
		return idv;
	}

	public void setIdv(String idv) {
		this.idv = idv;
	}
	
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getTitleUnsigned() {
		return titleUnsigned;
	}

	public void setTitleUnsigned(String titleUnsigned) {
		this.titleUnsigned = titleUnsigned;
	}

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

}